<?php if($operat_type == 'mobile'){//手机版?>
	<?php if(!empty($cart)){?>
	<?php $error = !empty($cart['Error'])?$cart['Error']:array();//错误消息?>
	<tr id="tr_<?php echo $cart['MealWeekly']['meal_weekly_id'];?>" data-mealweeklyid="<?php echo $cart['MealWeekly']['meal_weekly_id'];?>" data-error="<?php echo !empty($error['msg'])?$error['msg']:'';?>" data-maxstock="<?php echo !empty($error['stock'])?$error['stock']:'';?>">
		<td height="33" width='90' align="center"><?php echo $cart['MealWeekly']['title'];//餐品名称?></td>
		<td height="33" width='80' align="center">
			<a href="javascript:;" onclick="CART.minusProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');">减</a>
				<input type='text' id="number_<?php echo $cart['MealWeekly']['meal_weekly_id'];?>" maxlength ="2" class="shuliang" 
						value='<?php echo $cart['MealWeekly']['number'];//数量?>' 
						onblur="CART.updateProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');" />
			<a href="javascript:;" onclick="CART.plusProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');">加</a>
		</td>
		<td height="33" width='45' align="center"><?php echo $cart['MealWeekly']['price'];//单价?></td>
		<td height="33" width='45' align="center">
			<a href="javascript:;" onclick="CART.deleteProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');" class="quxiao">取消</a>
		</td>
	</tr>
	<?php }?>
<?php }else{?>
	<?php if(!empty($cart)){?>
	<?php $error = !empty($cart['Error'])?$cart['Error']:array();//错误消息?>
	<tr id="tr_<?php echo $cart['MealWeekly']['meal_weekly_id'];?>" data-mealweeklyid="<?php echo $cart['MealWeekly']['meal_weekly_id'];?>" data-error="<?php echo !empty($error['msg'])?$error['msg']:'';?>" data-maxstock="<?php echo !empty($error['stock'])?$error['stock']:'';?>">
		<td height="30" width='90' align="center">
			<span class='tdStyle tdTitle' title="<?php echo $cart['MealWeekly']['title'];//餐品名称?>">
				<?php echo $cart['MealWeekly']['title'];//餐品名称?>
			</span>
		</td>
		<td height="30" width='80' align="center">
			<p>
				<a href="javascript:;"
					onclick="CART.minusProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');"
					class="jian"></a>
				<input type='text' id="number_<?php echo $cart['MealWeekly']['meal_weekly_id'];?>" maxlength ="2" class="shuliang" value='<?php echo $cart['MealWeekly']['number'];//数量?>' onblur="CART.updateProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');" />
				<a href="javascript:;"
					onclick="CART.plusProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');"
					class="jia"></a>
			</p>
		</td>
		<td height="30" width='45' align="center">
			<span class='tdStyle tdPrice'>
				<?php echo $cart['MealWeekly']['price'];//单价?>
			</span>
		</td>
		<td height="30" width='45' align="center">
			<span class='tdStyle tdDelete'>
				<a href="javascript:;" onclick="CART.deleteProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');" class="quxiao"></a>
			</span>
		</td>
	</tr>
	<?php }?>
	<script>
	jQuery().ready(function(){
		CART.errorTip();
	});
	</script>
<?php }?>